<template>
  <div>
    <ul>
      <li v-for="itm in arr" :key =itm>
      {{itm}}</li>
  
    </ul>
    <button @click="add">翻转</button>
  </div>
</template>

<script>
export default {
  data(){
    return{
      arr:['西红柿','炒饭','蛋']
    }
  },
  methods:{
    add(){
      this.arr.push(this.arr[0])
      this.arr.splice(0,1)
    }
  }
}
</script>

<style>

</style>